package cn.wolfcode.service;

import cn.wolfcode.domain.Appointment;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IAppointmentService {
    void save(Appointment appointment);
    void delete(Long id);
    void update(Appointment appointment);
    Appointment get(Long id);
    List<Appointment> listAll();
    // 分页查询的方法
    PageInfo<Appointment> query(QueryObject qo);

    /**
     * 修改状态
     * @param id 需要修改的id
     * @param status 修改成什么状态
     */
    void updateStatus(Long id, Long status);


    /**
     * 通过流水号获取数据
     * @param appointmentAno 流水号
     * @return
     */
    Appointment selectByAno(String appointmentAno);


}
